<template>
  <div class="layout-page">
    <router-view></router-view>
    <!-- 配置route属性，开始tabbar的路由模式，给item配置to属性，定义跳转的地址 -->
    <van-tabbar route>
      <van-tabbar-item replace icon="notes-o" to="/article">面经</van-tabbar-item>
      <van-tabbar-item replace icon="star-o"  to="/collect">收藏</van-tabbar-item>
      <van-tabbar-item replace icon="like-o"  to="/like">喜欢</van-tabbar-item>
      <van-tabbar-item replace icon="user-o"  to="/user">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: 'layout-page'
}
</script>

<style lang="less" scoped>
</style>
